<template>
  <div class="box">
    <div>二次封装</div>
    <!-- <a-input v-bind="$attrs"></a-input> -->
    <component
      :is="h(Input, { ...$attrs, ref: changeRef }, $slots)"
    ></component>
  </div>
</template>
<script setup lang="ts">
import { ref, h, ComponentInstance } from "vue";
import { Input } from "ant-design-vue";
const hello = ref("hello worlfasdd");
const vm = getCurrentInstance();
function changeRef(exposed: any) {
  vm!.exposed = exposed;
}
defineExpose({} as ComponentInstance<typeof Input>);
</script>
<style lang="less" scoped>
.box {
  color: #60d659;
}
</style>
